#include "RenderForegroundMeshInstance.h"

#include "Render/Mesh/RenderMesh.h"
#include "PreRenderForegroundMeshInstance.h"
#include "Render/PreRenderContext.h"

void SRenderForegroundMeshInstance::GeneratePreRenderData(SPreRenderContext& InPreRenderContext,SPreRenderForegroundMeshInstance &OutData) const
{
    OutData.Position=Position;
    OutData.Rotation=Rotation;
    OutData.Scale=Scale;
    OutData.Mesh=InPreRenderContext.PreRender(Mesh);
    OutData.Color=Color;
    OutData.ViewPosition=ViewPosition;
}
